<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>

        (function(d){
console.log(d);

        })('a')//立即执行函数，第二个小括号可以看作是调用函数，可以传参
        
        
    </script>
</body>
</html>